<!DOCTYPE html>
<html style="background-color:#fff;height:100%">
<head>
    <meta charset="UTF-8">
    <title>新建文件夹</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="${re.contextPath}/plugin/layui/css/layui.css" media="all"/>
    <!--公用样式-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/comment.css" />
    <!--页面样式-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/it/common/css/style.css" />
    <style>
        .authority{
            width: 100%;
        }
    </style>
</head>
<body>
<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->

<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>

<!--新建文件夹-->
<div class="layui-container" style="margin-top:40px;padding-bottom: 80px">
    <div class="layui-row mt30">
        <h2><strong>权限设置</strong></h2>
    </div>
    <div class="layui-row mt30" style="background-color: #c0ced0;border-radius: 10px;padding:10px 0px 20px 0px">
        <div class="layui-row mt10">
            <div class="layui-col-md1 layui-col-sm3 layui-input-inline" style="text-align: right">文件夹名称</div><div class="layui-col-md7 layui-col-sm7  layui-input-inline" style="padding-left:20px">${dicFile.fileName}</div>
        </div>
        <div class="layui-row mt10">
            <div class="layui-col-md1 layui-col-sm3 layui-input-inline" style="text-align: right">创建人</div><div class="layui-col-md7 layui-col-sm7 layui-input-inline" style="padding-left:20px">${dicCreator.username}</div>
        </div>
        <div class="layui-row mt10">
            <div class="layui-col-md1 layui-col-sm3 layui-input-inline" style="text-align: right">创建时间</div><div class="layui-col-md7 layui-col-sm7 layui-input-inline" style="padding-left:20px">${dicFile.createDate?string("yyyy-MM-dd HH:mm:ss")}</div>
        </div>
    </div>
    <div class="layui-row mt30">
        <span class="ft16">设置查看权限</span>
        <input type="checkbox" tarbox="seecheckbox" class="checkAllBox ml20"><span class="ml10">全选</span>
    </div>
    <div class="layui-row mt10 seerolediv">
        <#list dicRoleList as role>
            <div style="display: inline-block;width:30%">
                <input type="checkbox" <#if (role.cansee =='1')>checked</#if> class="seecheckbox" lay-ignore style="margin-right:2px"><span class="rolespan" style="color:#888;margin-right:30px;" roleid="${role.id}" rolename="${role.roleName}">${role.remark}</span>
            </div>
        </#list>
    </div>
    <div class="layui-row mt30">
        <span class="ft16">设置下载权限</span>
        <input type="checkbox" tarbox="downloadcheckbox" class="checkAllBox ml20"><span class="ml10">全选</span>
    </div>
    <div class="layui-row mt10 downrolediv">
        <#list dicRoleList as role>
            <div style="display: inline-block;width:30%">
                <input type="checkbox" <#if (role.candown =='1')>checked</#if> class="downloadcheckbox" lay-ignore style="margin-right:2px"><span class="rolespan" style="color:#888;margin-right:30px;" roleid="${role.id}" rolename="${role.roleName}">${role.remark}</span>
            </div>
        </#list>
    </div>
    <div class="layui-row mt30">
        <span class="ft16">设置不能查看权限</span>
        <input type="checkbox" tarbox="noseecheckbox" class="checkAllBox ml20"><span class="ml10">全选</span>
    </div>
    <div class="layui-row mt10 downrolediv">
        <#list dicRoleList as role>
            <div style="display: inline-block;width:30%">
                <input type="checkbox" <#if (role.nosee =='1')>checked</#if> class="noseecheckbox" lay-ignore style="margin-right:2px"><span class="rolespan" style="color:#888;margin-right:30px;" roleid="${role.id}" rolename="${role.roleName}">${role.remark}</span>
            </div>
        </#list>
    </div>
</div>
<div class="layui-footer" style="width: 100%;text-align: center;background-color: #fff;position:fixed;bottom:0px;height: 50px;padding-top: 15px">
        <input class="layui-btn layui-btn-primary layui-btn-sm" type="button" value="关闭" onclick="_itkl.content.layerClose()">
        <input class="layui-btn layui-btn-normal layui-btn-sm" type="button" value="确定" onclick="_itkl.file.setDicPermission('${dicFile.id}')">
</div>
<!--JQ-->
<script type="text/javascript" charset="utf-8" src="/plugin/common/js/jquery-1.8.3.min.js"></script>
<!--公用样式JS-->
<script type="text/javascript" charset="utf-8" src="/plugin/common/js/comment.js"></script>
<!--选择城市js-->
<script type="text/javascript" src="${re.contextPath}/plugin/layui/layui.all.js"></script>
<script type="text/javascript" charset="utf-8" src="/plugin/it/common/js/itkl.js"></script>
<script>
$(function(){
    _itkl.permission.initPermissionCheckbox();
})
</script>
</body>

</html>